﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="TemplateEdit.aspx.cs" Inherits="MedicWeb.forms.Print.Edit.TemplateEdit" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HiddenField ID="hfTypes" runat="server" ClientIDMode="Static" /> 
    <table class="style1">
        <tr>
            <td align="right" nowrap="nowrap" width="1%">
                Отступ сверху</td>
            <td>
                <asp:TextBox CssClass="nullable" ID="tfMarginTop" runat="server"></asp:TextBox>
            </td>
            <td align="right" nowrap="nowrap" width="1%">
                Формат</td>
            <td>
                <asp:DropDownList CssClass="nullable" ID="comboFormat" runat="server">
                    <asp:ListItem>A4</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right" nowrap="nowrap" width="1%">
                Отступ справа</td>
            <td>
                <asp:TextBox CssClass="nullable" ID="tfMarginRight" runat="server"></asp:TextBox>
            </td>
            <td align="right" nowrap="nowrap" width="1%">
                2 стороны</td>
            <td>
                <asp:DropDownList CssClass="nullable" ID="comboDoubleSided" runat="server">
                    <asp:ListItem Value="0">Нет</asp:ListItem>
                    <asp:ListItem Value="1">Да</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right" nowrap="nowrap" width="1%">
                Отступ снизу</td>
            <td>
                <asp:TextBox CssClass="nullable" ID="tfMarginDown" runat="server"></asp:TextBox>
            </td>
            <td align="right" nowrap="nowrap" width="1%">
                Режим</td>
            <td>
                <asp:DropDownList CssClass="nullable" ID="comboMode" runat="server" Enabled="False">
                    <asp:ListItem>blank</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right" nowrap="nowrap" width="1%">
                Отступ слева</td>
            <td>
                <asp:TextBox CssClass="nullable" ID="tfMarginLeft" runat="server"></asp:TextBox>
            </td>
            <td align="right" nowrap="nowrap" width="1%">
                Ориентация</td>
            <td>
                <asp:DropDownList CssClass="nullable" ID="comboOrientation" runat="server">
                    <asp:ListItem Value="P">Книжная</asp:ListItem>
                    <asp:ListItem Value="L">Альбомная</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right" nowrap="nowrap" width="1%">
                Название</td>
            <td>
    <asp:TextBox ID="tfTitle" runat="server" Width="100%"></asp:TextBox>
            </td>
            <td align="right" nowrap="nowrap" width="1%">
                По умолчанию</td>
            <td>
                <asp:DropDownList ID="comboDefault" runat="server">
                    <asp:ListItem Value="0">Нет</asp:ListItem>
                    <asp:ListItem Value="1">Да</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <CKEditor:CKEditorControl Height="400px" ID="Editor" runat="server" ></CKEditor:CKEditorControl>    
    <asp:Button ID="buttonSave" runat="server" onclick="btnSave_Click" 
        Text="Сохранить" />
</asp:Content>
